package com.insigma.business.qrcode.job.service.impl;

import com.insigma.business.qrcode.common.service.SequenceGenerator;
import com.insigma.business.qrcode.job.dao.JobCandidatePositionEnrollDao;
import com.insigma.business.qrcode.job.entity.JobCandidatePositionEnrollDO;
import com.insigma.business.qrcode.job.service.JobCandidatePositionEnrollService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JobCandidatePositionEnrollServiceImpl implements JobCandidatePositionEnrollService {
    @Autowired(required = false)
    private JobCandidatePositionEnrollDao jobCandidatePositionEnrollDao;
    @Autowired(required = false)
    private SequenceGenerator sequenceGenerator;

    @Override
    public JobCandidatePositionEnrollDO getBySoldierIdAndPositionId(String soldierId, String positionId) {
        return jobCandidatePositionEnrollDao.getBySoldierIdAndPositionId(soldierId, positionId);
    }

    @Override
    public Integer countByPosition(String positionId) {
        return jobCandidatePositionEnrollDao.countByPosition(positionId);
    }
}
